let rules = {
  cid: [{ required: true, message: '请选择社区', trigger: 'blur' }],
  name: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
  tel: [
    {
      pattern: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
      message: '请输入正确的电话格式',
      trigger: 'blur',
    },
  ],
  email: [
    { type: 'email', message: '请输入正确的邮箱格式', trigger: 'blur' },
    { required: true, message: '请输入邮箱', trigger: 'blur' },
  ],
  address: [{ required: true, message: '请选择地址', trigger: 'blur' }],
}
module.exports.rules = rules
